/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package we.session;

import java.nio.ByteBuffer;
import org.apache.james.mime4j.message.Disposable;
import we.dispatcher.CPacketReader;

/**
 *
 * @author ADMIN
 */
public class CAttachment implements Disposable{
    public CPacketReader reader;
    public ByteBuffer writeBuff;
    public CSession session;
    
    public CAttachment(CPacketReader reader, CSession session) {
        this.reader = reader;
        this.session = session;        
    }

    @Override
    public void dispose() {    
        reader.dispose();
        session.dispose();
        this.reader = null;
        this.session = null;
        this.writeBuff = null;
    }
}
